package models;

import play.*;
import play.db.jpa.*;

import javax.persistence.*;
import java.util.*;

@Entity
public class Chale extends Model {
	public int numero;
	public boolean status=false;
	
    public Chale disponivel(List<Chale> c){
        
        for(Chale teste : c){
                if (teste.status==false){
                        teste.status=true;
                        return teste;
                }
        }
        return null;
               
               
}
    
}
